package org.txazo.music.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.txazo.music.dao.FileDao;
import org.txazo.music.dao.MusicDao;
import org.txazo.music.service.MusicService;
import org.txazo.music.vo.Music;
import org.txazo.music.vo.User;

/**
 * 音乐模块业务逻辑实现
 * 
 * @author Tu XiaoZhou
 * @since 2013-04-12
 */
@Transactional
@Service("musicService")
public class MusicServiceImpl implements MusicService {

	@Autowired
	private MusicDao musicDao;
	@Autowired
	private FileDao fileDao;

	@Override
	public void uploadMusic(User user, Music music) {

	}

	@Override
	public boolean isMusicFileExist(String hash) {
		return fileDao.isMusicFileExist(hash);
	}

}
